package io.renren.modules.sys.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 财务主表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-11-22 14:29:35
 */
@TableName("accounthead")
public class AccountheadEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 类型(支出/收入/收款/付款/转账)
	 */
	private String type;
	/**
	 * 单位Id(收款/付款单位)
	 */
	private Long organid;
	/**
	 * 经手人Id
	 */
	private Long handspersonid;
	/**
	 * 变动金额(优惠/收款/付款/实付)
	 */
	private Double changeamount;
	/**
	 * 合计金额
	 */
	private Double totalprice;
	/**
	 * 账户(收款/付款)
	 */
	private Long accountid;
	/**
	 * 单据编号
	 */
	private String billno;
	/**
	 * 单据日期
	 */
	private Date billtime;
	/**
	 * 备注
	 */
	private String remark;

	public AccountheadEntity(){}

	public AccountheadEntity(Long id) {
		this.id = id;
	}

	public AccountheadEntity(String type, Long organid, Long handspersonid, Double changeamount, Double totalprice, Long accountid, String billno, Date billtime, String remark) {
		super();
		this.type = type;
		this.organid = organid;
		this.handspersonid = handspersonid;
		this.changeamount = changeamount;
		this.totalprice = totalprice;
		this.accountid = accountid;
		this.billno = billno;
		this.billtime = billtime;
		this.remark = remark;
	}

	/**
	 * 设置：主键
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：主键
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：类型(支出/收入/收款/付款/转账)
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * 获取：类型(支出/收入/收款/付款/转账)
	 */
	public String getType() {
		return type;
	}
	/**
	 * 设置：单位Id(收款/付款单位)
	 */
	public void setOrganid(Long organid) {
		this.organid = organid;
	}
	/**
	 * 获取：单位Id(收款/付款单位)
	 */
	public Long getOrganid() {
		return organid;
	}
	/**
	 * 设置：经手人Id
	 */
	public void setHandspersonid(Long handspersonid) {
		this.handspersonid = handspersonid;
	}
	/**
	 * 获取：经手人Id
	 */
	public Long getHandspersonid() {
		return handspersonid;
	}
	/**
	 * 设置：变动金额(优惠/收款/付款/实付)
	 */
	public void setChangeamount(Double changeamount) {
		this.changeamount = changeamount;
	}
	/**
	 * 获取：变动金额(优惠/收款/付款/实付)
	 */
	public Double getChangeamount() {
		return changeamount;
	}
	/**
	 * 设置：合计金额
	 */
	public void setTotalprice(Double totalprice) {
		this.totalprice = totalprice;
	}
	/**
	 * 获取：合计金额
	 */
	public Double getTotalprice() {
		return totalprice;
	}
	/**
	 * 设置：账户(收款/付款)
	 */
	public void setAccountid(Long accountid) {
		this.accountid = accountid;
	}
	/**
	 * 获取：账户(收款/付款)
	 */
	public Long getAccountid() {
		return accountid;
	}
	/**
	 * 设置：单据编号
	 */
	public void setBillno(String billno) {
		this.billno = billno;
	}
	/**
	 * 获取：单据编号
	 */
	public String getBillno() {
		return billno;
	}
	/**
	 * 设置：单据日期
	 */
	public void setBilltime(Date billtime) {
		this.billtime = billtime;
	}
	/**
	 * 获取：单据日期
	 */
	public Date getBilltime() {
		return billtime;
	}
	/**
	 * 设置：备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：备注
	 */
	public String getRemark() {
		return remark;
	}
}
